<?php
class Control_ServerList extends Control {
	public function formatServerList($serverlistCfg) {
		
		$serverlistCfg = str_replace('{"version', '{'."\n".'"version', $serverlistCfg);
		$serverlistCfg = str_replace('"defaultSeverID', '"'."\n".'"defaultSeverID', $serverlistCfg);
		$serverlistCfg = str_replace('"severs', '"'."\n".'"severs', $serverlistCfg);
		$serverlistCfg = str_replace("[{", "[\n{", $serverlistCfg);
		$serverlistCfg = str_replace("]}", "\n]}", $serverlistCfg);
		$serverlistCfg = str_replace("[{", "[{\n", $serverlistCfg);
		$serverlistCfg = str_replace("},", "},\n", $serverlistCfg);
		
		return $serverlistCfg;
	}
}